<template>
  <el-dialog
    title="提示"
    :before-close="close"
    :visible.sync="visible"
    center
    :append-to-body="true"
    width="20%"
  >
    <p>抱歉，您暂无权限！</p>
    <span slot="footer" class="dialog-footer">
      <el-button type="primary" @click="close">确 定</el-button>
    </span>
  </el-dialog>
</template>
<script>
export default {
  props: {
    visible: {
      default: true
    }
  },
  methods: {
    close () {
      this.$emit('close')
    }
  }
}
</script>
